<div id="content">
    <div id="page-heading"><h1>Edit Template</h1></div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <?php echo $this->Html->image('../images/shared/side_shadowleft.jpg', array('alt' => '', 'width' => '20', 'height' => '300')); ?>
            </th>
            <th class="topleft"></th>
            <td id="tbl-border-top">&nbsp;</td>
            <th class="topright"></th>
            <th rowspan="3" class="sized">
                <?php echo $this->Html->image('../images/shared/side_shadowright.jpg', array('alt' => '', 'width' => '20', 'height' => '300')); ?>
             </th>
        </tr>
        <tr>
            <td id="tbl-border-left"></td>
            <td>
                <div id="content-table-inner">
                    <table border="0" width="100%" cellpadding="0" cellspacing="0">
                        <tr valign="top">
                            <td>
                                <?php echo $this->Form->create("$sN", array('action' => 'edit', 'class' => 'form', 'type' => 'file')); ?>
                                <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                                    <?php
                                        echo $this->Session->flash();
                                    ?>
                                    <tr>
                                        <td colspan="3">
                                            <?php echo $this->Html->script('tiny_mce/tiny_mce'); ?>
                                            <script type="text/javascript">
                                            // O2k7 skin
                                            tinyMCE.init({
                                                    // General options
                                                    mode : "exact",
                                                    elements : "description",
                                                    theme : "advanced",
                                                    skin : "o2k7",
                                                    plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

                                                    // Theme options
                                                    theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
                                                    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
                                                    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
                                                    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
                                                    theme_advanced_toolbar_location : "top",
                                                    theme_advanced_toolbar_align : "left",
                                                    theme_advanced_statusbar_location : "bottom",
                                                    theme_advanced_resizing : true,

                                                    // Example content CSS (should be your site CSS)
                                                    content_css : "/emstraining/css/admin/screen.css",

                                                    // Drop lists for link/image/media/template dialogs
                                                    template_external_list_url : "/emstraining/js/tiny_mce/plugins/template/editor_plugin.js",
                                                    external_link_list_url : "js/link_list.js",
                                                    external_image_list_url : "js/image_list.js",
                                                    media_external_list_url : "/emstraining/js/tiny_mce/plugins/media/editor_plugin.js",

                                                    // Replace values for the template plugin
                                                    template_replace_values : {
                                                            username : "Some User",
                                                            staffid : "991234"
                                                    }
                                            });
                                            </script>
                                            <?php
                                                echo $this->Form->input('Template.message', array(
                                                                    'label'     => false,
                                                                    'id'        =>'description',
                                                                    'div'       => false,
                                                                    'class'     => 'med')
                                                    );
                                            ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>&nbsp;</th>
                                        <td valign="top">
                                            <?php echo $this->Form->submit('Submit', array('class' => 'form-submit')); ?>
                                        </td>
                                        <td></td>
                                    </tr>
                                </table>
                                <?php echo $this->Form->end();?>    
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td>
                               <?php echo $this->Html->image('../images/shared/blank.gif', array('alt' => 'blank', 'width' => '695', 'height' => '1')); ?>
                            </td>
                            <td></td>
                        </tr>
                    </table>
                    <div class="clear"></div>
                </div>
            </td>
            <td id="tbl-border-right"></td>
        </tr>
        <tr>
            <th class="sized bottomleft"></th>
            <td id="tbl-border-bottom">&nbsp;</td>
            <th class="sized bottomright"></th>
        </tr>
    </table>
    <div class="clear">&nbsp;</div>
</div>
